package com.zhongyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongyu.pojo.Order;
import com.zhongyu.pojo.OrderDetail;
import com.zhongyu.vo.*;


import java.util.List;

public interface OrderService extends IService<Order> {
    PageResult searchAll(Integer pageNo, Integer pageSize, XsOrderVo orderVo); //, XsOrderVo xsOrderVo全部销售订单查询
    PageResult search1(Integer pageNo, Integer pageSize);//未出库销售订单查询
    List<Order>searchById(Integer id);//根据销售id查订单


    ResultVo xsadd(Order order);//添加销售订单


//采购
    PageResult search(Integer pageNo, Integer pageSize, CgOrderVo cgOrderVo);//xsOrderVo全部采购订单查询
    List<Order> searchCC(Integer id);
    void update(Order order);
    List<Order>  searchOrder(Integer id);
    ResultVo tianCai(Order order);//添加采购订单
    void  del(Integer id);
}
